/*
** my_strstr.c for my_strstr in /home/goupil_r//afs/Jour_06
**
** Made by robin goupil
** Login   <goupil_r@epitech.net>
**
** Started on  Mon Oct  8 11:21:11 2012 robin goupil
** Last update Sat Nov 10 17:47:34 2012 robin goupil
*/

char	*my_strstr(char *str, char *to_find)
{
  int	str_it;
  int	find_it;

  str_it = 0;
  find_it = 0;
  while (str[str_it] != '\0')
    {
      while (str[str_it + find_it] == to_find[find_it])
	{
	  find_it = find_it  + 1;
	  if (to_find[find_it] == '\0')
	    return (&str[str_it + find_it]);
	}
      find_it = 0;
      str_it = str_it + 1;
    }
  return ('\0');
}
